package com.cxf.service.impl;

import com.bean.CommandBean;
import com.cxf.service.*;
import com.db.service.impl.LoginHelper;
import com.operator.gson.JsonOperator;

import javax.jws.WebService;


@WebService(endpointInterface = "com.cxf.service.ILoginService", serviceName = "LoginServiceService")
public class LoginService implements ILoginService {

	@Override
	public String login(String username, String password) {
		LoginHelper loginHelper = new LoginHelper();
		CommandBean commandBean = loginHelper.onLogin(username, password);
		String jsonStr = JsonOperator.toJson(commandBean);
		return jsonStr;
	}

}
